/*
 * @Author: wangdazhuang
 * @Date: 2024-08-15 17:14:24
 * @LastEditTime: 2025-01-16 11:26:46
 * @LastEditors: wangdazhuang
 * @Description: 
 * @FilePath: /pornhub_app/lib/main.dart
 */

import 'package:pornhub_app/app.dart';
import 'package:pornhub_app/app_prepare.dart';
import 'package:flutter/material.dart';

import 'package:pornhub_app/components/restart_app/restart_app.dart';
import 'package:media_kit/media_kit.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  MediaKit.ensureInitialized();
  try {
    await AppPrepare.init();
    runApp(const MainApp());
  } catch (e) {
    runApp(const RestartApp());
  }
}
